<div id="tech-add">
	<div class="r-form-panel r-bg-cl-white">
		<div class="p-wrap-nav">
			<h1 class="p-wrap-title">
				<i class="iconfont icon icon-jibenxinxi"></i> 
				<span>基本信息</span>
			</h1>
		</div>
		<div class="p-wrap-body">
			<div class="r-form-group">
				<label class="r-form-label">技术名称</label>
				<div>
					<input type="name" class="r-form-input r-w-100" ng-model="tech.name" placeholder="请输入技术名称">
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">技术来源</label>
				<div class="r-form-radio-group">
					<span class="r-form-radio" ng-class="{select:tech.originId == o.oid}" ng-repeat="o in originlists" ng-click="tech.originId = o.oid" ng-bind="o.name"></span>
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">技术类型</label>
				<div class="r-form-radio-group">
					<span class="r-form-radio" ng-class="{select:tech.categoryId == c.cid}" ng-repeat="c in categories" ng-click="tech.categoryId = c.cid" ng-bind="c.name"></span>
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">所属行业</label>
				<div class="r-form-radio-group">
					<span class="r-form-radio" ng-class="{select:tech.industryId == i.iid}" ng-repeat="i in industries" ng-click="tech.industryId = i.iid" ng-bind="i.name"></span>
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">交易方式</label>
				<div class="r-form-radio-group">
					<span class="r-form-radio" ng-class="{select:tech.tradeTypeId == t.tid}" ng-repeat="t in tradeTypes" ng-click="tech.tradeTypeId = t.tid" ng-bind="t.name"></span>
				</div>
			</div>
			
			<div class="r-form-group">
				<label class="r-form-label">参考价格</label>
				<div>
					<input type="text" class="r-form-input r-w-100" ng-model="tech.price" placeholder="请输入参考价格">
				</div>
			</div>
			
			<div class="r-form-group">
				<label class="r-form-label">地区</label>
				<div>
					<select class="r-form-input r-w-30" ng-model="province" ng-options="m.name for m in cities" ng-change="selectCity(province)"> 
					</select>&nbsp;&nbsp;
					
					<select class="r-form-input r-w-30" ng-model="city" ng-options="m.name for m in province.city" ng-change="selectCity(city)"> 
					</select>	
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">地址</label>
				<div>
					<input type="text" class="r-form-input r-w-100" ng-model="tech.address" placeholder="请输入权属人名称">
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">权属人名称</label>
				<div>
					<input type="text" class="r-form-input r-w-100" ng-model="tech.owner" placeholder="请输入权属人名称">
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">技术成果介绍</label>
				<div>
					<textarea class="ueditor" config="Config" ng-model="tech.content"></textarea>
				</div>
			</div>
		</div>
		<!-- 联系方式 -->
		<div class="r-form-panel r-bg-cl-white panel-wrap">
			<div class="p-wrap-nav">
				<h1 class="p-wrap-title">
					<i class="iconfont icon icon-lianxifangshi"></i> 
					<span>联系方式</span>
				</h1>
			</div>
			<div class="p-wrap-body" >
				<div class="r-form-group">
					<label class="r-form-label">联系人</label>
					<div>
						<input type="text" class="r-form-input r-w-100" ng-model="tech.connectUser" placeholder="请输入联系人">
					</div>
				</div>
				<div class="r-form-group">
					<label class="r-form-label">联系电话</label>
					<div>
						<input type="text" class="r-form-input r-w-100" ng-model="tech.telephone" placeholder="请输入联系电话">
					</div>
				</div>
				<div class="r-form-group">
					<label class="r-form-label">电子邮箱</label>
					<div>
						<input type="text" class="r-form-input r-w-100" ng-model="tech.email" placeholder="请输入邮箱">
					</div>
				</div>
				<div class="r-form-btns mg-b-t">
					<span ng-click="saveTech();" class="r-button r-button-default-save">保存</span>
					<span ng-click="cancelTech();" class="r-button r-button-default-cancel">取消</span>
				</div>
			</div>
		</div>
	</div>
</div>
 <script>
    var editor = new UE.getEditor('test');
    editor.ready(function(){
      setTimeout(function(){
        console.log(editor.destroy);
        editor.destroy();
        editor = new UE.getEditor('test'); 
      },500);
    });
  </script>

